<%-- 
    Document   : ReadArticle
    Created on : May 19, 2013, 4:21:20 PM
    Author     : Lada
--%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <%
//        request.geta
%>
        <div id="menu">
            <%
                if (request.getAttribute("listA") == null) {
            %>
            <!--                    RequestDispatcher req= request.getRequestDispatcher("ListArticleAction");
                              req.forward(request, response);
            //                    response.sendRedirect(request.getContextPath()+ "/ListArticleAction");-->
            <jsp:forward page='"${request.getContextPath()}"/ListArticleAction'></jsp:forward>
            <%    
                }
            %>
            <c:if test="${requestScope.listA != null}">
                <c:forEach items="${param.listA}" var="i">
                    <a href="<%= request.getContextPath()%>/ListArticleAction?id=${i.artid}">${i.name}</p>
                    </c:forEach>
                </c:if>
                <%--<c:if test="${param.listA == null}">--%>
                <%--<jsp:forward page="${request.getContextPath()}/ListArticleAction" ></jsp:forward>--%>
                <%--</c:if>--%>


        </div>
    </body>
</html>
